const fs = require("fs")
const {
    writeFs,
    fsRead
} = require("./location")


const path = "all.txt"
fs.readdir("../fs", function (err, files) {
    if (err) {
        console.log(err);
    } else {
        files.forEach(async function (bookName, index) {
            let content = await fsRead("../fs/" + bookName)
            // console.log(content);
            await writeFs(path, content)
        })
    }
})